﻿using AutoCommunication.Enums;
using System;

namespace AutoCommunication.Base
{
    /// <summary>
    /// 报警参数
    /// </summary>
    public class AlarmEventArgs : EventArgs
    {
        /// <summary>
        /// 为true表示触发报警;为false表示解除报警
        /// </summary>
        public bool IsTrigger { get; set; }

        /// <summary>
        /// 报警信息
        /// </summary>
        public string AlarmInfo { get; set; } = "报警信息:.........";

        /// <summary>
        /// 当前值
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// 报警设定值
        /// </summary>
        public float SetValue { get; set; }

        /// <summary>
        /// 报警等级
        /// </summary>
        public AlarmLevel AlarmLevel { get; set; } = AlarmLevel.Info;
    }
}